// 电影--服务层
const movies = require("../dao/moviesDao")

const get = async () => await movies.get()

const create = async (data) => await movies.create(data)

const getById = async (_id) => await movies.getById(_id);

const update = async (_id, updateData) => await movies.update(_id, updateData);

const removeData = async (removeDataId) => await movies.removeData(removeDataId);

module.exports = {
    get,
    create,
    getById,
    update,
    removeData
}